package demo04_bean;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * Created by ztt on 2017/9/16.
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {Config.class})
public class UserServiceTest {

    @Autowired
    private UserService service;

    @Test
    public void run(){
        OrgDao d1=service.orgService().get();
        OrgDao d2=service.orgService2().get();
        System.out.println(d1==d2);
    }
}
